import { Alert } from 'react-native';

export const noticeByAlert = (title, content, btns = []) => {
  if (btns.length === 0) {
    btns.push({ text: '确定' });
  }
  Alert.alert(
    title,
    content,
    btns,
    { cancelable: false },
  );
};
